package com.share.openfeign;

import com.share.constants.AllConsts;
import com.share.pojo.domain.LoginVo;
import com.share.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(value =  AllConsts.Remote.SERVICE_NAME_UAA,
        fallbackFactory = UaaOpenfeignFallbackFactory.class)
public interface UaaOpenfeign {
    @PostMapping(AllConsts.Remote.REMOTE_PREFLIX+"/register")
    public JSONResult register(@RequestBody @Valid LoginVo loginVo);
}
